// { "framework": "Vue"} 

/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 307);
/******/ })
/************************************************************************/
/******/ ({

/***/ 262:
/***/ (function(module, exports) {

module.exports = {
  "container": {
    "flex": 1,
    "flexDirection": "column",
    "alignItems": "center",
    "justifyContent": "center",
    "height": 88
  },
  "top-line": {
    "position": "absolute",
    "top": 0,
    "left": 0,
    "right": 0,
    "height": 2
  },
  "tab-icon": {
    "marginTop": 5,
    "width": 40,
    "height": 40
  },
  "tab-text": {
    "marginTop": 5,
    "textAlign": "center",
    "fontSize": 20
  }
}

/***/ }),

/***/ 263:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

exports.default = {
    props: {
        index: { default: 0 },
        title: { default: '' },
        titleColor: { default: '#000000' },
        icon: { default: '' },
        backgroundColor: { default: '#ffffff' }
    },
    methods: {
        onclickitem: function onclickitem(e) {
            var params = {
                index: this.index
            };
            this.$emit('tabItemOnClick', params);
        }
    }
};

/***/ }),

/***/ 264:
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: ["container"],
    style: {
      backgroundColor: _vm.backgroundColor
    },
    on: {
      "click": _vm.onclickitem
    }
  }, [_c('image', {
    staticClass: ["top-line"],
    attrs: {
      "src": "http://gtms03.alicdn.com/tps/i3/TB1mdsiMpXXXXXpXXXXNw4JIXXX-640-4.png"
    }
  }), _c('image', {
    staticClass: ["tab-icon"],
    attrs: {
      "src": _vm.icon
    }
  }), _c('text', {
    staticClass: ["tab-text"],
    style: {
      color: _vm.titleColor
    }
  }, [_vm._v(_vm._s(_vm.title))])])
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ 275:
/***/ (function(module, exports) {

module.exports = {
  "wrapper": {
    "width": "750",
    "backgroundColor": "#ffffff",
    "display": "block",
    "position": "absolute",
    "top": 0,
    "left": 0,
    "right": 0,
    "bottom": 0
  },
  "content": {
    "position": "absolute",
    "top": 0,
    "left": 0,
    "right": 0,
    "bottom": 0,
    "marginTop": 0
  },
  "tabbar": {
    "flexDirection": "row",
    "position": "fixed",
    "bottom": 0,
    "left": 0,
    "right": 0,
    "height": "80",
    "color": "#ffffff",
    "backgroundColor": "#FF0000"
  }
}

/***/ }),

/***/ 276:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _tabitem = __webpack_require__(277);

var _tabitem2 = _interopRequireDefault(_tabitem);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = {
    components: {
        tabitem: _tabitem2.default
    },
    props: {
        tabItems: { default: [] },
        msg: { default: 'ccc' },
        selectedColor: { default: '#ff0000' },
        unselectedColor: { default: '#000000' }

    },
    data: function data() {
        return {
            selectedIndex: 0
        };
    },

    created: function created() {

        this.select(this.selectedIndex);
    },

    methods: {
        tabItemOnClick: function tabItemOnClick(e) {
            this.selectedIndex = e.index;
            this.select(e.index);
            this.$emit('tabBarOnClick', e);
        },
        select: function select(index) {
            //this.tabItems.splice(0,this.tabItems.length)
            //  var map={};
            // map.title='fffffffffffffffffffff'
            // this.tabItems.push(map)
            for (var i = 0; i < this.tabItems.length; i++) {
                var tabItem = this.tabItems[i];
                if (i == index) {
                    tabItem.icon = tabItem.selectedImage;
                    tabItem.titleColor = this.selectedColor;
                    tabItem.visibility = 'visible';
                } else {
                    tabItem.icon = tabItem.image;
                    tabItem.titleColor = this.unselectedColor;
                    tabItem.visibility = 'hidden';
                }
            }
        }
    }
}; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/***/ }),

/***/ 277:
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(262)
)

/* script */
__vue_exports__ = __webpack_require__(263)

/* template */
var __vue_template__ = __webpack_require__(264)
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "D:\\weexplus-demo\\src\\native\\component\\tabitem.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-1d0f45eb"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__


/***/ }),

/***/ 278:
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: ["wrapper"]
  }, [_vm._l((_vm.tabItems), function(item, i) {
    return _c('embed', {
      key: i,
      staticClass: ["content"],
      style: {
        visibility: item.visibility
      },
      attrs: {
        "src": item.src,
        "type": "weex"
      }
    })
  }), _c('div', {
    staticClass: ["tabbar"],
    appendAsTree: true,
    attrs: {
      "append": "tree"
    }
  }, _vm._l((_vm.tabItems), function(item) {
    return _c('tabitem', {
      key: item.index,
      attrs: {
        "index": item.index,
        "icon": item.icon,
        "title": item.title,
        "titleColor": item.titleColor
      },
      on: {
        "tabItemOnClick": _vm.tabItemOnClick
      }
    })
  }))], 2)
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ 307:
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(275)
)

/* script */
__vue_exports__ = __webpack_require__(276)

/* template */
var __vue_template__ = __webpack_require__(278)
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "D:\\weexplus-demo\\src\\native\\component\\tabbar.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-2a9a492a"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__
module.exports.el = 'true'
new Vue(module.exports)


/***/ })

/******/ });